package com.guanzi.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author guanzi
 * @since 2021-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("e_food")
@ApiModel(value="Food对象", description="")
public class Food implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "菜品名称")
    private String name;

    @ApiModelProperty(value = "菜品图片")
    private String img;

    @ApiModelProperty(value = "所属商家")
    @TableField("e_store_id")
    private Integer eStoreId;

    @ApiModelProperty(value = "菜品描述")
    private String remark;

    @ApiModelProperty(value = "是否删除")
    @TableField("is_del")
    private Integer isDel;

    @ApiModelProperty(value = "价格")
    @TableField("price")
    private Double price;

    @ApiModelProperty(value = "累计被点单数")
    @TableField("count")
    private Integer count;

    @ApiModelProperty(value = "点餐计数器")
    @TableField("number")
    private Integer number;
}
